home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic 5 Developer's Kit
/
Visual Basic 5 Developer's Kit.iso
/
codes
/
unit1.~pa
< prev
next >
Wrap
Text File
|
1997-07-10
|
1KB
|
76 lines
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ExtCtrls, MPlayer;
type
TForm1 = class(TForm)
Panel1: TPanel;
Image1: TImage;
Image2: TImage;
Image3: TImage;
Image4: TImage;
Image5: TImage;
Image6: TImage;
MediaPlayer1: TMediaPlayer;
procedure Image2Click(Sender: TObject);
procedure Image3Click(Sender: TObject);
procedure Image4Click(Sender: TObject);
procedure Image5Click(Sender: TObject);
procedure Image6Click(Sender: TObject);
procedure FormShow(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
procedure TForm1.Image2Click(Sender: TObject);
begin
close;
end;
procedure TForm1.Image3Click(Sender: TObject);
begin
winexec('explorer \',SW_Shownormal);
end;
procedure TForm1.Image4Click(Sender: TObject);
begin
winexec('explorer \rts',SW_Shownormal);
end;
procedure TForm1.Image5Click(Sender: TObject);
begin
winexec('explorer \dlls',SW_Shownormal);
end;
procedure TForm1.Image6Click(Sender: TObject);
begin
winexec('explorer \dev',SW_Shownormal);
end;
procedure TForm1.FormShow(Sender: TObject);
begin
with mediaplayer1 do
begin
filename:='bcs.wav';
open;
play;
end;
end;
end.